package org.NooLab.structures.randomgraph;



public class WordNeighborhood {

	RGraphPropertiesDefaultIntf rgProperties;
	
	String[] wordNeighbors ; 
	int[]    wordIndices ;

	private int centerPosition;

	private String centerWordStr;
	
	// ========================================================================
	public WordNeighborhood(RGraphPropertiesDefaultIntf props) {

		rgProperties = props ;
		
		int nLen = props.getLengthNeighborhood() ;
		// dependent on settings
		wordNeighbors = new String[nLen] ;
		wordIndices   = new int[nLen] ;
	}
	// ========================================================================

	public void clear() {
		
		wordNeighbors = new String[0]; 
		wordIndices = new int[0] ;
	}

	public String[] getWordNeighbors() {
		return wordNeighbors;
	}

	public void setWordNeighbors(String[] wordNeighbors) {
		this.wordNeighbors = wordNeighbors;
	}

	public int[] getWordIndices() {
		return wordIndices;
	}

	public void setWordIndices(int[] wordIndices) {
		this.wordIndices = wordIndices;
	}

	public void setCenterWordPos(int centerpos) {
		
		centerPosition = centerpos ;
	}

	public void setCenterWordStr(String wordstr) {
		
		centerWordStr = wordstr ;
	}

	public int getCenterPosition() {
		return centerPosition;
	}

	public void setCenterPosition(int centerPosition) {
		this.centerPosition = centerPosition;
	}

	public String getCenterWordStr() {
		return centerWordStr;
	}

	 
	
	
}
